<?php

class Application_Form_BuscaAvancadaEmails extends Zend_Form
{

    public function init()
    {
    	$t = Zend_Registry::get('translator');    	
        $this->setName('form_busca_avancada_emails');
        $this->setAction('');
        $this->setMethod('post');
        
        $yahoo = new Zend_Form_Element_Checkbox('yahoo');
        $msn = new Zend_Form_Element_Checkbox('msn');
        $aol = new Zend_Form_Element_Checkbox('aol');
        $gmail = new Zend_Form_Element_Checkbox('gmail');
        $hotmail = new Zend_Form_Element_Checkbox('hotmail');
        $tipo = new Zend_Form_Element_Hidden('tipo');
        $tipo->setValue('buscaAvancada');

        $yahoo->setRequired(true)->removeDecorator('Label');
        $msn->setRequired(true)->removeDecorator('Label');
        $aol->setRequired(true)->removeDecorator('Label');
        $gmail->setRequired(true)->removeDecorator('Label');
        $hotmail->setRequired(true)->removeDecorator('Label');
        
        $this->addElements(array($yahoo,$msn,$aol,$gmail,$hotmail,$tipo));        
    }


}

